﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace HYBYSoft.Company.WebSite.Helper
{
    public class ConfigurationHelper
    {
        private static string _uplodeImagesPath = @"UplodeImagesPath";

        /// <summary>
        /// 获得AppSetting信息
        /// </summary>
        /// <param name="key">键</param>
        /// <returns></returns>
        public static string GetAppSettingValue(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
        
        /// <summary>
        /// 上传图片路径
        /// </summary>
        public static string UplodeImagesPath
        {
            get { return GetAppSettingValue(_uplodeImagesPath); }
        }
    }
}